package com.ybb.production.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yubb.common.annotation.Excel;
import com.yubb.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;

import java.util.Date;

/**
 * 用户工资发放对象 garment_production_user_pay
 *
 * @author dj
 * @date 2023-09-28
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Data
public class GarmentProductionUserPay extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户工资发放表Id
     */
    @ApiModelProperty(value = "用户工资发放表Id")
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名")
    @Excel(name = "用户姓名")
    private String userName;


    /**
     * 总工资
     */
    @ApiModelProperty(value = "总工资")
    @Excel(name = "总工资")
    private String totalSalary;

    /**
     * 结算日期
     */
    @ApiModelProperty(value = "结算日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结算日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date settlementTime;

    /**
     * 发放时间
     */
    @ApiModelProperty(value = "发放时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发放时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /**
     * 计件工资
     */
    @ApiModelProperty(value = "计件工资")
    @Excel(name = "计件工资")
    private String countSalary;

    /**
     * 自定义项
     */
    @ApiModelProperty(value = "自定义项")
    @Excel(name = "自定义项")
    private String dynamicData;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;
}
